package test;
import course.Course;
import person.Student;
import person.Teacher;

public class StudentCourseTest {
    public static void main(String[] args) {
        // 1. 创建教师（初始课程为null）
        Teacher teacher1 = new Teacher(101, "李华", "男", null);
        Teacher teacher2 = new Teacher(102, "王明", "女", null);

        Course course1 = new Course(1, "Java程序设计", "教学楼A", "周一8:00", teacher1);
        Course course2 = new Course(2, "高等数学A", "教学楼B", "周三1:30", teacher2);

        Student student1 = new Student(201, "胡图图", "男");
        Student student2 = new Student(202, "张小丽", "女");
        Student student3 = new Student(203, "白婷婷", "女");

  
        teacher1.printInfo();
        teacher2.printInfo();

        student1.selectCourse(course1);
        student1.selectCourse(course2);
        student2.selectCourse(course1);
        student3.selectCourse(course2);

        student1.dropCourse(course2);

        student1.printInfo();
        student2.printInfo();
        student3.printInfo();
    }
}